package com.cjj.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 资讯表
 * </p>
 *
 * @author admin
 * @since 2025-10-25
 */
@Data
@TableName("notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资讯ID
     */
    @TableId(value = "noticeId", type = IdType.AUTO)
    private Long noticeId;

    /**
     * 管理员ID
     */
    @TableField("adminId")
    private Long adminId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 发布时间
     */
    @TableField("publishTime")
    private LocalDateTime publishTime;

    /**
     * 分类
     */
    @TableField("category")
    private String category;

    /**
     * 浏览量
     */
    @TableField("views")
    private Integer views;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("updateTime")
    private LocalDateTime updateTime;

    /**
     * 状态：1-正常，0-禁用
     */
    @TableField("status")
    private Byte status;
}
